package com.zj.consumer.feign.Impl;

import com.zj.consumer.domain.Student;
import com.zj.consumer.feign.FeignConfig;
import org.springframework.stereotype.Component;



//降级方案
@Component
public class FeiConfigImpl implements FeignConfig {
    @Override
    public Student getStudent(String name) {
        System.out.println(name);
        return new Student(9,"在consumer层被降级",99);
    }
}
